package net.csdn.business.common.domain.request.project;

import lombok.Data;
import lombok.EqualsAndHashCode;
import net.csdn.business.common.domain.PageQueryParamDTO;
import net.csdn.business.common.domain.validation.groups.System;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * @author likun
 * @date 2023/5/24 10:32
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class PathProjectQueryDTO extends PageQueryParamDTO implements Serializable {
    @NotBlank(message = "path 不能为空")
    private String path;

    @NotBlank(message = "uid 不能为空", groups = System.class)
    @Length(min = 24, max = 24, message = "uid 不合法", groups = System.class)
    private String uid;
}